package com.ywk.webFlux.mySql.service.impl;

import com.ywk.webFlux.mySql.dao.UserRepository;
import com.ywk.webFlux.mySql.entity.User;
import com.ywk.webFlux.mySql.service.WebFluxByMysqlService;
import org.springframework.beans.factory.annotation.Autowired;
import reactor.core.publisher.Flux;

/**
 * @Author zbh
 * @Date 2023/4/29
 */
//@Service
public class WebFluxByMysqlServiceImpl implements WebFluxByMysqlService {

    @Autowired
    private UserRepository userRepository;

    @Override
    public Flux<User> findAll() {
        return userRepository.findAll();
    }
}
